#ifndef GAMETEXT_H
#define GAMETEXT_H

#include <string>
#include "Box2D/Box2D.h"
#include "SFML/Graphics.hpp"
#include <SFML/OpenGL.hpp>
#include "Objects/GameObject.h"

using namespace std;

enum Alignment{
	LEFT,
	CENTER,
	RIGHT
};

class GameText : public GameObject
{
public:
	GameText(GameState *gameState);

	// Update
	virtual void update(double dt);

	virtual void draw();
	
	const string& getText(){ return m_text; }

	void setText(const string &text){ m_text = text; }

	void setAlignment(Alignment ali){ m_alignment = ali;}

	void setFontSize(int size){ m_fontSize = size; }

private:

	string m_text;

	int m_fontSize;

	Alignment m_alignment;
};

#endif
